//
//  CategoryInfoApi.m
//  SmartiOSPublisher
//
//  Created by Liu,Qingcan on 2017/4/26.
//  Copyright © 2017年 Baidu. All rights reserved.
//

#import "CategoryInfoApi.h"

@implementation CategoryInfoApi{
    NSString *_name;
}

- (id)initWithCategoryName:(NSString *)name{
    self = [super init];
    if (self) {
        _name = name;
    }
    return self;
}

- (NSString *)requestUrl{
    return @"/room/get_categoryinfo";
}

- (YTKRequestMethod)requestMethod{
    return YTKRequestMethodPOST;
}

- (id)requestArgument{
    return @{
             @"name":_name
             };
}

- (YTKResponseSerializerType)responseSerializerType {
    return YTKResponseSerializerTypeJSON;
}


- (YTKRequestSerializerType)requestSerializerType{
    return YTKRequestSerializerTypeJSON;
}



@end
